<template>
  <div class="home-banner">
    <Slider :data="state.list" />
  </div>
</template>

<script setup>
import Slider from '@/components/Slider/index.vue'
import { banner } from '@/api/user.js'
import { reactive } from 'vue'
const state = reactive({
  list: []
})
const getBanner = async () => {
  const res = await banner()
  state.list = res
}
getBanner()
</script>

<style scoped lang="less">
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
